package com.rpp.core;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Author rpp
 * @Date 2020/7/20 10:53 下午
 */
public class StandardService {

    private Mapper mapper = new Mapper(this);

    private StandardServer server;

    private List<Connector> connectors = new ArrayList<>();

    public void setServer(StandardServer standardServer) {
        this.server = standardServer;
    }

    public Mapper getMapper() {
        return mapper;
    }

    public void setMapper(Mapper mapper) {
        this.mapper = mapper;
    }

    public StandardServer getServer() {
        return server;
    }

    public void addConnector(Connector connector) {
        connectors.add(connector);
    }

    public List<Connector> getConnectors() {
        return connectors;
    }

    public void start() throws Exception{

        mapper.start();
    }
}
